home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ahmsyscm / _setup.1 / AHMTDriveVolume.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-12  |  3.7 KB  |  98 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'AHMTDriveVolume.pas' rev: 3.00
  6.  
  7. #ifndef AHMTDriveVolumeHPP
  8. #define AHMTDriveVolumeHPP
  9. #include <AHMSystem.hpp>
  10. #include <Classes.hpp>
  11. #include <SysUtils.hpp>
  12. #include <Messages.hpp>
  13. #include <Windows.hpp>
  14. #include <SysInit.hpp>
  15. #include <System.hpp>
  16.  
  17. //-- user supplied -----------------------------------------------------------
  18.  
  19. namespace Ahmtdrivevolume
  20. {
  21. //-- type declarations -------------------------------------------------------
  22. typedef void __fastcall (__closure *TAHMOnDriveVolumeError)(int ErrorNumber);
  23.  
  24. class DELPHICLASS TAHMDriveVolume;
  25. class PASCALIMPLEMENTATION TAHMDriveVolume : public Ahmsystem::TAHMSystemsComponent 
  26. {
  27.     typedef Ahmsystem::TAHMSystemsComponent inherited;
  28.     
  29. private:
  30.     bool fcasepreserved;
  31.     bool fcasesensitive;
  32.     bool fstoredUni;
  33.     bool fpersistent;
  34.     bool ffilecompression;
  35.     bool fvolcompressed;
  36.     System::AnsiString fvollabel;
  37.     System::AnsiString fvolSerialNum;
  38.     System::AnsiString ffilesystemname;
  39.     int ffilesystemflag;
  40.     char FDrive;
  41.     TAHMOnDriveVolumeError FErrorEvent;
  42.     Classes::TNotifyEvent fbeforeupdate;
  43.     Classes::TNotifyEvent fafterupdate;
  44.     void __fastcall UpdateBoolInfo(bool value);
  45.     void __fastcall UpdateStringInfo(System::AnsiString value);
  46.     void __fastcall UpdateIntegerInfo(int value);
  47.     void __fastcall SetDrive(char DriveLetter);
  48.     
  49. protected:
  50.     void __fastcall ProcessError(const System::Variant &Result);
  51.     System::AnsiString __fastcall GetVolumeLabel(void);
  52.     System::AnsiString __fastcall GetVolumeSerialNumber(void);
  53.     System::AnsiString __fastcall GetVolumeFileSystemName(void);
  54.     int __fastcall GetVolumeFileSystemFlags(void);
  55.     
  56. public:
  57.     __fastcall virtual TAHMDriveVolume(Classes::TComponent* AComponent);
  58.     void __fastcall UpdateAll(void);
  59.     
  60. __published:
  61.     __property bool VolumeIsCompressed = {read=fvolcompressed, write=UpdateBoolInfo, stored=false, nodefault
  62.         };
  63.     __property bool CasePreserved = {read=fcasepreserved, write=UpdateBoolInfo, stored=false, nodefault
  64.         };
  65.     __property bool CaseSensitive = {read=fcasesensitive, write=UpdateBoolInfo, stored=false, nodefault
  66.         };
  67.     __property bool StoredUniCodeOnDisk = {read=fstoredUni, write=UpdateBoolInfo, stored=false, nodefault
  68.         };
  69.     __property bool PersistentACLS = {read=fpersistent, write=UpdateBoolInfo, stored=false, nodefault};
  70.         
  71.     __property bool FileCompression = {read=ffilecompression, write=UpdateBoolInfo, stored=false, nodefault
  72.         };
  73.     __property System::AnsiString VolumeLabel = {read=fvollabel, write=UpdateStringInfo, stored=false};
  74.         
  75.     __property System::AnsiString SerialNumber = {read=fvolSerialNum, write=UpdateStringInfo, stored=false
  76.         };
  77.     __property System::AnsiString FileSystemName = {read=ffilesystemname, write=UpdateStringInfo, stored=false
  78.         };
  79.     __property int FileSystemFlags = {read=ffilesystemflag, write=UpdateIntegerInfo, stored=false, nodefault
  80.         };
  81.     __property char CurrentDrive = {read=FDrive, write=SetDrive, stored=false, nodefault};
  82.     __property Classes::TNotifyEvent AfterUpdate = {read=fafterupdate, write=fafterupdate};
  83.     __property Classes::TNotifyEvent BeforeUpdate = {read=fbeforeupdate, write=fbeforeupdate};
  84.     __property TAHMOnDriveVolumeError OnError = {read=FErrorEvent, write=FErrorEvent};
  85. public:
  86.     /* TComponent.Destroy */ __fastcall virtual ~TAHMDriveVolume(void) { }
  87.     
  88. };
  89.  
  90. //-- var, const, procedure ---------------------------------------------------
  91.  
  92. }    /* namespace Ahmtdrivevolume */
  93. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  94. using namespace Ahmtdrivevolume;
  95. #endif
  96. //-- end unit ----------------------------------------------------------------
  97. #endif    // AHMTDriveVolume
  98.